﻿@model VoiceAd.Models.tblEmailContent
@{
    ViewBag.Title = "Thêm mới nội dung gửi mail";
    Layout = "~/Views/Shared/_LayoutAd.cshtml";
}
<script src="@Url.Content("~/Content/fckeditor/fckeditor.js")" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function () {
        var oEditVn = new FCKeditor('Body');
        oEditVn.BasePath = "@Url.Content("~/Content/fckeditor/")";
        oEditVn.Height = 400;
        oEditVn.ReplaceTextarea();
    }
</script>
<h2>
    Thêm mới nội dung gửi mail</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông tin</legend>
        <div class="editor-label">
            Tiêu đề mail
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Title, new { style = "width: 500px" })
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-label">
            Nội dung mail
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body)
            @Html.ValidationMessageFor(model => model.Body)
        </div>
        <p>
            <input type="submit" value="Thêm mới" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Danh mục nội dung mail", "EmailContent")
</div>
